package com.zhibang.sinocare.jcz;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.CrossOrigin;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("com.zhibang.sinocare.jcz.dao")
@ComponentScan("com.zhibang")
@EnableSwagger2  //启用swagger2
public class JczApplication {
    public static void main(String[] args) {
      SpringApplication.run(JczApplication.class);

    }
}
